import React from 'react'
import { connect } from 'react-redux';
import { getLs } from '@/common/common';
import { asyncGetContent } from '@/store/actions';
import CardList from '@/pages/Index/Common/CardList';


function MarkDown() {
  const userInfo = getLs("userInfo")
  return (
    <CardList comefrom="markDown" params={{ userId: userInfo?._id }} isUser/>
  )
}
export default connect((state) => {
  return {
    contents: state.content.contents
  }
}, dispatch => {
  return {
    getPublic: (params) => asyncGetContent(dispatch, params)
  }
})(MarkDown)
